import {request} from '@/utils/request';


// 餐厅服务商列表
export function foodProviderList <T>(data?: T) {
    return request({
        url: 'merchant/restaurant/client/getByPage',
        method: 'GET',
        data
    })
}

// 餐厅产品列表
export function foodProductList <T>(data?: T) {
    return request({
        url: 'merchant/restaurant/client/getProductList',
        method: 'GET',
        data
    })
}

// 餐厅服务商信息详情
export function foodProviderDetail <T>(data?: T) {
    return request({
        url: 'merchant/restaurant/client/detail',
        method: 'GET',
        data
    })
}

// 餐厅产品详情
export function foodProductDetail <T>(data?: T) {
    return request({
        url: 'merchant/restaurant/client/Combo/detail',
        method: 'GET',
        data
    })
}

// 餐厅产品详情
export function createOrder <T>(data?: T) {
    return request({
        url: 'order/client/Restaurant/add',
        method: 'POST',
        data,
    })
}
